﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Windows.UI.Popups;

namespace Common.Utils
{
	public class MessageDialogHelper
	{
		public static async Task ShowDialogAsync(String title, String content, params UICommand[] commands)
		{
			var md = new MessageDialog(content, title);
			foreach (var command in commands)
			{
				md.Commands.Add(command);
			}

			md.Commands.Add(new UICommand("Cancel", x =>
			{

			}));

			await md.ShowAsync();
		}
	}
}
